//
//  DMDiseaseHistoryController.m
//  CQKuaiYi
//
//  Created by ling on 17/1/9.
//  Copyright © 2017年 Mr.Cannon. All rights reserved.
//

#import "DMDiseaseHistoryController.h"

static NSString *rid = @"cell";

@interface DMDiseaseHistoryController ()<UITableViewDataSource>

@property(nonatomic,strong)UITableView *tableView;

@end

@implementation DMDiseaseHistoryController

- (void)viewDidLoad {
    [super viewDidLoad];

    self.view.backgroundColor = [UIColor whiteColor];
    
    [self setupUI];
}

#pragma mark - 数据源方法
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 3;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:rid forIndexPath:indexPath];
    
    cell.textLabel.text = @"手术治疗";
    
    return cell;
}



#pragma mark - 搭建界面
- (void)setupUI
{
    _tableView = [[UITableView alloc]initWithFrame:self.view.bounds style:UITableViewStylePlain];
    
    _tableView.rowHeight = 60;
    
    [_tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:rid];
    
    _tableView.dataSource = self;
    
    
    [self.view addSubview:_tableView];
}




- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
